﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 操作日志
	/// </summary>
	public class DbActionLog
	{ 
		#region DbActionLog
		/// <summary>
		/// 
		/// </summary>
		public DbActionLog()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public DbActionLog(Int32 aId)
		{
			this.aId = aId;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public DbActionLog(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["aId"]),out aId);
			this.aUId = Convert.ToString(dr["aUId"]);
			this.aNote = Convert.ToString(dr["aNote"]);
			this.aIpaddress = Convert.ToString(dr["aIpaddress"]);
			if(dr["aDateTime"] != DBNull.Value)
				this.aDateTime = Convert.ToDateTime(dr["aDateTime"]);
			this.aOS = Convert.ToString(dr["aOS"]);
			this.aBrowse = Convert.ToString(dr["aBrowse"]);
			
		}
		#endregion
		
		
		#region AId
		private Int32 aId;
		/// <summary>	 
		/// 
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 AId
		{
			get{ return aId; }
			set{ aId= value; }
		}
		#endregion
		
		#region AUId
		private System.String aUId;
		/// <summary>	 
		/// 用户ID或SessionID
		/// </summary>
		public System.String AUId
		{
			get{ return aUId; }
			set{ aUId= value; }
		}
		#endregion
		
		#region ANote
		private System.String aNote;
		/// <summary>	 
		/// 操作事件记录
		/// </summary>
		public System.String ANote
		{
			get{ return aNote; }
			set{ aNote= value; }
		}
		#endregion
		
		#region AIpaddress
		private System.String aIpaddress;
		/// <summary>	 
		/// 操作ID
		/// </summary>
		public System.String AIpaddress
		{
			get{ return aIpaddress; }
			set{ aIpaddress= value; }
		}
		#endregion
		
		#region ADateTime
		private DateTime aDateTime;
		/// <summary>	 
		/// 操作时间
		/// </summary>
		public DateTime ADateTime
		{
			get{ return aDateTime; }
			set{ aDateTime= value; }
		}
		#endregion
		
		#region AOS
		private System.String aOS;
		/// <summary>	 
		/// 操作系统
		/// </summary>
		public System.String AOS
		{
			get{ return aOS; }
			set{ aOS= value; }
		}
		#endregion
		
		#region ABrowse
		private System.String aBrowse;
		/// <summary>	 
		/// 操作浏览器
		/// </summary>
		public System.String ABrowse
		{
			get{ return aBrowse; }
			set{ aBrowse= value; }
		}
		#endregion

	}
}
